<%--
  Created by IntelliJ IDEA.
  User: 刘锦华
  Date: 2022/2/25
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
</head>
<body>
<form action="register" method="post">
    <input type="text" placeholder="用户名" name="id" id="i1">
    <span style="color: red" id="s1">
        ${requestScope.rmessage}
    </span>
    <br>
    <input type="password" placeholder="密码" name="pwd"><br>
    <input type="email" placeholder="邮箱" name="email"><br>
    <input type="submit" value="注册">
</form>
</body>
</html>
<script>
    var t=document.getElementById("i1");
    t.onfocus=function () {
        var sp=document.getElementById("s1");
        sp.remove();
    }
</script>
